home *** CD-ROM | disk | FTP | other *** search
/ Sprite 1984 - 1993 / Sprite 1984 - 1993.iso / src / lib / include / RCS / time.h,v < prev    next >
Encoding:
Text File  |  1991-11-01  |  2.5 KB  |  183 lines

  1. head     1.7;
  2. branch   ;
  3. access   ;
  4. symbols  ;
  5. locks    ; strict;
  6. comment  @ * @;
  7.  
  8.  
  9. 1.7
  10. date     91.11.01.13.10.26;  author rab;  state Exp;
  11. branches ;
  12. next     1.6;
  13.  
  14. 1.6
  15. date     90.11.06.17.21.12;  author rab;  state Exp;
  16. branches ;
  17. next     1.5;
  18.  
  19. 1.5
  20. date     90.05.07.12.59.11;  author rab;  state Exp;
  21. branches ;
  22. next     1.4;
  23.  
  24. 1.4
  25. date     90.05.02.14.41.55;  author rab;  state Exp;
  26. branches ;
  27. next     1.3;
  28.  
  29. 1.3
  30. date     89.07.14.09.10.07;  author rab;  state Exp;
  31. branches ;
  32. next     1.2;
  33.  
  34. 1.2
  35. date     88.06.29.14.57.44;  author ouster;  state Exp;
  36. branches ;
  37. next     1.1;
  38.  
  39. 1.1
  40. date     88.06.21.16.34.16;  author ouster;  state Exp;
  41. branches ;
  42. next     ;
  43.  
  44.  
  45. desc
  46. @@
  47.  
  48.  
  49. 1.7
  50. log
  51. @Put #ifdef around clock_t
  52. @
  53. text
  54. @/*
  55.  * Copyright (c) 1983, 1987 Regents of the University of California.
  56.  * All rights reserved.  The Berkeley software License Agreement
  57.  * specifies the terms and conditions for redistribution.
  58.  *
  59.  *    @@(#)time.h    1.2 (Berkeley) 3/4/87
  60.  */
  61.  
  62. #ifndef _TIME_H
  63. #define _TIME_H
  64.  
  65. #include <cfuncproto.h>
  66.  
  67. #ifndef _TIME_T
  68. #define _TIME_T
  69. typedef    long    time_t;
  70. #endif
  71. #ifndef _CLOCK_T
  72. #define _CLOCK_T
  73. typedef    long    clock_t;
  74. #endif
  75.  
  76. /*
  77.  * Structure returned by gmtime and localtime calls (see ctime(3)).
  78.  */
  79. struct tm {
  80.     int    tm_sec;
  81.     int    tm_min;
  82.     int    tm_hour;
  83.     int    tm_mday;
  84.     int    tm_mon;
  85.     int    tm_year;
  86.     int    tm_wday;
  87.     int    tm_yday;
  88.     int    tm_isdst;
  89.     long    tm_gmtoff;
  90.     char    *tm_zone;
  91. };
  92.  
  93. _EXTERN clock_t clock _ARGS_((void));
  94. _EXTERN time_t time _ARGS_((time_t *tp));
  95. _EXTERN time_t mktime _ARGS_((struct tm *tp));
  96. _EXTERN double difftime _ARGS_((time_t time2, time_t time1));
  97. _EXTERN struct tm *gmtime _ARGS_((_CONST time_t *tp));
  98. _EXTERN struct tm *localtime _ARGS_((_CONST time_t *tp));
  99. _EXTERN char *asctime _ARGS_((_CONST struct tm *tp));
  100. _EXTERN char *ctime _ARGS_((_CONST time_t *tp));
  101. _EXTERN int strftime _ARGS_ ((char *s, int smax, _CONST char *fmt,
  102.                              _CONST struct tm *tp));
  103.  
  104. #endif /* _TIME_H */
  105. @
  106.  
  107.  
  108. 1.6
  109. log
  110. @Changed extern to _EXTERN for g++.
  111. @
  112. text
  113. @d9 2
  114. a10 2
  115. #ifndef _TIME
  116. #define _TIME
  117. d17 3
  118. d51 1
  119. a51 1
  120. #endif /* _TIME */
  121. @
  122.  
  123.  
  124. 1.5
  125. log
  126. @Added declaration of time().
  127. @
  128. text
  129. @d12 8
  130. d37 10
  131. a46 10
  132. extern    struct tm *gmtime(), *localtime();
  133. extern    char *asctime(), *ctime();
  134.  
  135. #ifndef _TIME_T
  136. #define _TIME_T
  137. typedef long time_t;
  138. typedef long clock_t;
  139. #endif
  140.  
  141. extern time_t time();
  142. @
  143.  
  144.  
  145. 1.4
  146. log
  147. @Added typedefs for time_t and clock_t.
  148.  
  149. @
  150. text
  151. @d38 2
  152. @
  153.  
  154.  
  155. 1.3
  156. log
  157. @*** empty log message ***
  158. @
  159. text
  160. @d32 6
  161. @
  162.  
  163.  
  164. 1.2
  165. log
  166. @Add ifdefs so that file can't be processed twice.
  167. @
  168. text
  169. @d32 1
  170. a32 1
  171. #endif _TIME
  172. @
  173.  
  174.  
  175. 1.1
  176. log
  177. @Initial revision
  178. @
  179. text
  180. @d9 3
  181. d31 2
  182. @
  183.